getting events to post to database