Fix the SQL for reservations class modification.