Connecting server and saving votes.