Fix the indexes in the database.