changed signature for cache db calls