Added flexibility to accomodate mutliple timeslots and days when adding or updating the department