db script fix