optimized vote querying, and restricted voting to past events from front-end