Fix DC-999 Query cache key can be incorrectly generated

If you run two versions of a site on one server (e.g. staging and
prod), and one has an updated schema, queries without explicit columns
cause a fatal error due to query caching.

This fixes it by including the DSN.

Reference: http://www.doctrine-project.org/jira/browse/DC-999