def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def _get(delta, start):
            p = start
            while delta:
                p = p.next
                delta -= 1
            return p.val