Added db functionality to VotingService