def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def dfs(self,candidates,target,start,reslist):
        length = len(candidates)
        if target == 0: 
            return self.result.append(reslist)