smarter handling/parsing of connection strings and uri