Modified Script SQL