commit and return result. This is intended for sql UPDATE ... RETURNING

def commitreturn(self,qstring,vals=()):
    "commit and return result. This is intended for sql UPDATE ... RETURNING"
    with self.withcur() as cur:
      cur.execute(qstring,vals)
      return cur.fetchone()