UserCategory model and fix end issues with trainer rake