loadDatabase now uses ensureDatafileIntegroty