re fix db script