Added the backend functionality for registering vote to proper tables. Marco should send the proper data instead of fake data I'm sending.