Update mongodb uri parsing