Added support for a local mongo db.  Added a touch more logging