Add support for doctrine connection settings and options, closes #788