Fix parameter style for PG.
Code improvements in backends (mostly PG).
Use $CAQTI_URI for test cases if set.