updated dbcache widget check cache exists logic