Invented new regexp for parsing the DSN.

We can be a bit more specific since we don't need to capture every possible
type of url. Our DSN has a uri-like format, but it's not an entire, full uri.