edit sql scripts