modified db script