Add some db indices to get rid of slow queries.

Without these, some pages can be really slow, service detail page for example.