refactor get query for accepted events
refactor get query for event that match id