Use JDatabase in Profile plugin