def METHOD_NAME(self, result):
    """
    Stores the results of doNew method on the database.
    """
    for pilotDict in result:
        resQuery = self.rmClient.addOrModifyPilotCache(
            site=pilotDict["Site"],
            cE=pilotDict["CE"],
            vO=pilotDict.get("OwnerGroup", None),
            pilotsPerJob=pilotDict["PilotsPerJob"],
            pilotJobEff=pilotDict["PilotJobEff"],
            status=pilotDict["Status"],
        )
        if not resQuery["OK"]:
            return resQuery
    return S_OK()