Add Doctrine reconnect. Better factory.