Chartboost interview question

How do you optimize DB queries?