working on adding event to database