Added indexes to database tables.