Use merge instead of extend  to deep clone mongo config