Improve upvoting algorith
- Combine db query and voting validations into one function for efficiency
- Function will still grab the post from db and check to see if the user has voted
Merge pull request #41 from alexanderdavidpan/Improve_Upvoting_Algorithm

Improve upvoting algorithm