Modify sql script