Adding support for specifying the mongo db to use.

 This avoids the listDirectories call that is prohibited on some hosted services.