Add database and thumbnail cache.