changes to the cache service to handle the db changes