script changes, constraints add with checks, new base sql