Database: Another caching bug