Update SQL script