user entity class and repository queries