Use JDatabase in category model
Use JInput in category model