Random postgre install/upgrade things (may be broken)

Signed-off-by: emanuele <emanuele45@gmail.com>