postgres: Pylint

This fixes #9920
postgres: fix: setting login could allow createdb
postgres: fix password encryption handling
postgres: small typo
postgres: Pylint fixes
Merge pull request #9924 from makinacorpus/fixpgsql

[URGENT / SECURITY] Postgresql fixes