Fixed the connection creation using the factory

Updated the parameters in the factory.
Merge pull request #1 from e-larrambebere/master

Fixed the connection creation using the factory