Correct Factory definition

Factory outputs a `Doctrine\DBAL\Connection` not a `StdClass`.
Merge pull request #219 from drak/patch-1

Correct Factory definition