Correct Factory definition

Factory outputs a `Doctrine\DBAL\Connection` not a `StdClass`.