link database to event calendar