Fixes #1175 Added PgSQL part
Fixes #11475 Remove duplicated line
Fixes #1170 - PIN issues during upgrade

#1170
Fixes #1186
Merge pull request #1187 from JN-Jones/fix-1186

Fixes #1186
Merge pull request #1179 from JN-Jones/fix-1175

Fix 1175
Merge pull request #1185 from ATofighi/patch-1

Fixes #1170 - PIN issues during upgrade
Replacing thead.png with a bit lighter gradient