 ifSuccessful = helpers.ifSuccessful
 
 soap = require 'soap'
-MongoClient = require('mongodb').MongoClient
-mongoUrl = "mongodb://127.0.0.1:27017/galegis-api-dev"
-
+await = require 'await'
 votesSvcUri = "./wsdl/Votes.svc.xml"
 
 mapVoteMemberIds = (session, votesCast, db, callback) ->

      description: vote.Description,
      chamber: vote.Branch.toLowerCase(),
      votes: votes

    db.collection("votes").update
      assemblyId: assemblyIdForVote

    callback(votesCast)

persistVote = (session, vote, db, callback) ->
  assemblyIdForVote = Number(vote.VoteId)

  votesCast =
    yea: [],
