Patch doctrine

Add support for doctrine dbal adapter as storage engine.