Set database to objects retrieved from the cache.