Simplified sqlitecachedb.py.