Fix index names in database migration