Ruby back end stuff for PollWatch project