Last JDatabase replacement in categories model