fixing mongo url construction.
Merge pull request #682 from edx/e0d/mongo-url-fix

fixing mongo url construction.