add CRUD function for cache db