Mongodb uri support

improved patch

/Fredrik