upvote downvote sql for comments implemented