c.execute('insert or ignore into blah values (?, ?)', (cid, buffer(zlib.
    compress(html))))
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings