def finishStep(self, stepid, results, hidden):
        def thd(conn):
            tbl = self.db.model.steps
            q = tbl.update(whereclause=(tbl.c.id == stepid))
            conn.execute(q,
                         complete_at=int(self.master.reactor.seconds()),
                         results=results,
                         hidden=1 if hidden else 0)
        return self.db.pool.do(thd)