Database calendar event model fix