fixing mongo url construction.