tighten up loadingMappingFile method in CLASS_database