Database isn't an instance of `JApplication` ;-)