reports events to postgre database.