improve the parsing of dbUri to handle missing username and password