connected calendar to database