add gen-sql.sh framework
add @uniq and @rand subst vars. subst for user in exec.