Lokesh|FT refactoring for insertSchedule and insertPeriod methods