Switch mongodb module over to class style invocation