update sql script