update sql scripts