script addition for sql