Change cache name to be uniq for installation, not file.
Add hooks prepareDoctrineConnection and doctrineConnect.