updates for sql script