CORE: add static final attribute entityForAttr

-static final attribute entityForAttr is used for adding attributesDefinition without entity to cache
CORE: modified get methods for attributes of DB

- if attribute is not in cache, it will be added to cache after getting from DB