attempt to repair missing database