Updating query that pulls pending-events