Fixes #3: removed dbresolver from MongoMetadata and fixed side effects