Added code to create calender if it does not exist