Refactorisation of Window
Added postgresql connection management class
Updated .gitignore