update db script