refactor mongo url