Fix inconsistency in db.