Use JDatabase instead of MySQL