correcting database