Made changes to fake database. Fixed minor errors in getting next event.