Add database indexes

This adds many database indexes for columns referenced in
queries.