Fixed issues loading/dumping database