New code for putting and getting events from postgres