def METHOD_NAME(self, violations):
    """Output scanner results to DB.
    Args:
        violations (list): A list of violations.
    """
    model_description = (
        self.service_config.model_manager.get_description(self.model_name))
    inventory_index_id = (
        model_description.get('source_info').get('inventory_index_id'))
    violation_access = self.service_config.violation_access
    scanner_index_id = scanner_dao.get_latest_scanner_index_id(
        violation_access.session, inventory_index_id,
        index_state=IndexState.RUNNING)
    violation_access.create(violations, scanner_index_id)