added single cache checkpointing
just use plain db a cache