parses a database URL into a DSN connection string for use in PHP's PDO