edit sql script