now deletes expired appointments from db
moved alarm to alarmservice for readability