Few errors in install and upgrade (pgsql)

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