Fix db script