Database: added test for accessed-columns caching responsibility
Database: fixed accessed-columns caching responsibility