Adding db name as a cache key

.. since image config may vary according to that