fix psql command line generator for properness