How To Optimize An SQL Query In A Django Application?