correct sudo running for psql commands