- use $$ quoting in postgres SQL
- use named parameters for SQL functions
- fix/complete define_function_args