keep thumbnail data in SQLite3 instead of Redis

This way we can flush the cache and not have to worry about
losing all our thumbnails.  Also if we have multiple app servers
the thumbnail data will be local to the server where the files
reside.