fix the voting queries following the schema change
Merge pull request #286 from adrianbanks/fix-voting-queries

Fix the voting queries following the schema change: `UserProfile` was renamed to `UserProfiles`, but these queries weren't updated at the time.