hiding the mongodb db api for various reasons