def createTable(self): store = getStore() store.execute(self.createQuery) store.commit()
def save(self): store = getStore() store.add(self) store.commit()
def findtip(what): store = getStore() x = list(store.find(InternalTip, InternalTip.id == what)) return x