Add the database functionality for votes.

authors: rbkillea
Merge pull request #120 from ryanbaylorkillea/sbl-dev

Add the database functionality for votes.