Updated sql script.