fixed db script