add an option to repair leveldb databases