updating db script