further work on psql.paper.SQLPaper