changes to schedules table and procedure