Fix dumpdb to restoredb