pull events from the db