#2 Refactor mongodb config