DAR-1732 fixing silly bug - in case of no notifications, db was used instead of the cache