Added: cdb repair function.