Updated sql scripts