Doctrine dbal

Linked with #144