fix args in some SQL (not python) functions to use $1 $2