Edit sql scripts