This is because a multi-tenant extension needs credentials from the incoming request, in order to operate.
When initializing a DB object you probably forgot to pass in HQ credentials like so:
user_obj = User(self.logger, hq_credentials=self.hq_credentials)
If you only pass in the first parameter, you'll run into the above error when using the DB object.