3 Ways To Optimize Database Queries