Update gitignore
Fix connection to database detection in install process
Merge pull request #1165 from nlegoff/connection-issue

[3.8] Fix database connection detection