sql scripts updated