Closed #28

Fixed upvote/downvote function, checked that it actually changes things
in the database.