d/bin/patchwork-configure-postgresql: rework the helper

Use a password based approach and don't assume the DB host is localhost.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>