code: def prepare_models(self):
          
          if self.database_config:
              for model in (self.options.queue_model, self.options.error_model):
                  model.database.reset(**self.database_config)
docs: If a database config ws given as argument, apply it to our models