improved psql script readability