correct the db script