Added basic support for MongoDB persistence