Bug 1106413: psql wrapper always return zero even if psql command is already failed

Update psql wrapper, to return actual psql return code