update sql script.