def METHOD_NAME(self, buildid, name):
    def thd(conn):
        build_data_table = self.db.model.build_data
        q = build_data_table.select().where((build_data_table.c.buildid == buildid) &
                                            (build_data_table.c.name == name))
        res = conn.execute(q)
        row = res.fetchone()
        if not row:
            return None
        return self._row2dict(conn, row)
    res = yield self.db.pool.do(thd)
    return res