converting UserEntity to a generic key/value storage thingie