db script corrected