Move the query logic in the User model and retrieve as object in the controller