New: repairdatabase