adding upvote functionality to backend