psql assignment ammended