Adding support for MongoDB in database configuration