injecting external config for mongo