Simple Database Query optimization

Cancelled