database: fix table confirmation

We were checking 'int' vs 'integer' and failing.

Signed-off-by: Jeff Mahoney <jeffm@jeffreymahoney.com>
linkcache: handle browser's idea of encoding

mechanize.Browser can have a different idea of what encoding is in
use from that in the html file. This can result in UnicodeDecodeErrors
popping up. Use the unicode version immediately, encoding with
the browser's encoding.

Signed-off-by: Jeff Mahoney <jeffm@jeffreymahoney.com>