Speed up homepage by using raw SQL
Merge pull request #373 from steventlamb/topic/speed_up_queries

Speed up homepage by using raw SQL