Use JDatabase and JInput rather than JRequest