read next event from the db