updated SQL table generation scripts to latest version