Storing a vote into the database