fix small issues in sql generator
fix the package names in the command line scripts