fixed psql lines