added database for events