def get_insert_query(table_name):
    """
    Based on the table_name, returns the corresponding SQL insert query
    
    Input: 
    	Table name
    
    Output: 
    	None or Insert Query
    
    Raises Exception: 
    	No
    
    """
    
    table_insert_query_dict = {
        
        'ioc_hashes':'''
        INSERT OR REPLACE INTO ioc_hashes
        (hash_value,
        hash_type,
        source_parent_url,
        source_parent_name,
        confidence_level,
        tags,
        created_date_epoch, 
        last_updated_date_epoch,
        reference,
        remarks)
        VALUES
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
        ON CONFLICT(hash_value, source_parent_name, reference) DO UPDATE SET
        last_updated_date_epoch = ?;
        ''',
        
        'ioc_ip_addrs':'''
        INSERT OR REPLACE INTO ioc_ip_addrs
        (ip_value, 
        source_parent_url,
        source_parent_name,
        confidence_level,
        tags,
        created_date_epoch,
        last_updated_date_epoch,
        reference,
        remarks)
        VALUES
        (?, ?, ?, ?, ?, ?, ?, ?, ?)
        ON CONFLICT(ip_value, source_parent_name, reference) DO UPDATE SET
        last_updated_date_epoch = ?;
        ''',
        
        'ioc_domains':'''
        INSERT OR REPLACE INTO ioc_domains
        (domain_value,
        source_parent_url,
        source_parent_name,
        confidence_level,
        tags,
        created_date_epoch, 
        last_updated_date_epoch, 
        reference,
        remarks)
        VALUES
        (?, ?, ?, ?, ?, ?, ?, ?, ?)
        ON CONFLICT(domain_value, source_parent_name, reference) DO UPDATE SET
        last_updated_date_epoch = ?;
        ''',
        
        'ioc_malware':'''
        INSERT OR REPLACE INTO ioc_malware
        (malware_name,
        source_parent_url,
        source_parent_name,
        confidence_level,
        tags,
        created_date_epoch,
        last_updated_date_epoch,
        reference,
        remarks)
        VALUES
        (?, ?, ?, ?, ?, ?, ?, ?, ?)
        ON CONFLICT(malware_name, source_parent_name, reference) DO UPDATE SET
        last_updated_date_epoch = ?;
        '''
    }
    
    try:
        insert_query = table_insert_query_dict[table_name]
    except KeyError as e:
        insert_query = ''
    
    return insert_query