db.postgresql: configurable test db setting

adds a \ postgresql-db global (analoguous to the \ imap-settings one)
which holds settings to a postgres db so that the tests have something
to test against.
db.tester: the postgresql-db variable shouldn't be mutated
db.postgresql: ensure that 2 line error messages are handled