Updated sql scripts.