ScheduleDAO. Part of update method.