Updated Mongo to work with local and hosted DB