Modifies sql script