Doctrine DBAL

[GH-163] [WIP] Upsert support protoype.