changed access to mongo db to use MongoClient
added config and setup to operate behind reverse proxy