fix CalendarService for getting classRef in wrong database