Edit SQL script