Fix username typos and reuse the uri passed in rather than parsing it
ourselves if it starts with mongodb://