Adding indexes in database to improve speed