update sql script in ver4