midpoint changes before a refactoring for better error return model
Convert db_mongo to use the (err, result) model and convert the tests to use it.
Move to a constructor model rather than an init function.