Experimental database corruption fix