Database query service for vote data