Use the same client for all queries rather than getting a new one each time
Moved vote score calculation to vote-form.js and presented scored to vote.js in a nicer format
so that database insertion is not dependent on array ordering
Extract insertVotes into its own function, for reasons.