Delete old schedule before inserting new schedules

Prevents incorrect period entries at end of day
Add method for getting all periods for a schedule
Replace old code with call to new method

Fetch all periods in a schedule from bellCyclePeriodsInSchedule call