Correcting database mistakes