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