Mongo access config through yaml file