debug cachedb implementation