sql scripts modification