use psql -q instead of piping spawn output