add event to db