moved mongo db instantiation to the ctor.