added database entry of events and associated models