Modification of method setAttribute for user

Database changes are reflected in the cache.