Added the database to the MongoDB adapter.
Take care of creation of hidden classes.