Adopt new Mongo client framework. fixed #3