Adopting new Mongo client framework. fixes #1

It was checked using NVD repository tests.