refactor cache to use PyDbLite instead of sqlite