adding the mongodb api class to the library