Switched over from using raw MongoSession to a DB object

This should allow the end user to specify the database to be used...
instead of just using the default test database