Mongo db as a config parameter