Script Generate Tables