Adopted new Mongo client framework. fixed #1