update SQL script