make DB consistent