def add_check_result(self, host_id, check_id, secure, reasons):
        """
        Check if this check result has already been added to the database, if not, add it in.
        """
        q = select(self.ConfChecksResultsTable).filter(self.ConfChecksResultsTable.c.host_id == host_id, self.ConfChecksResultsTable.c.check_id == check_id)
        select_results = self.conn.execute(q).all()
        context = locals()
        new_row = dict(((column, context[column]) for column in ('host_id', 'check_id', 'secure', 'reasons')))
        updated_ids = self.insert_data(self.ConfChecksResultsTable, select_results, **new_row)

        if updated_ids:
            cme_logger.debug(f"add_check_result() - Check Results IDs Updated: {updated_ids}")
            return updated_ids

        Check if this check result has already been added to the database, if not, add it in.
        
cme/protocols/smb/database.py