connect to database through method in VotingSystem class which calls in Main