link the database to the calendar