fixed command passed to psql