Heavy refactoring. It's no more a factory but an object representing a DSN.
Added the idea files to the gitignore