def run(filename, incident_id, seen):
    import configparser
    config = configparser.ConfigParser()
    config.read((APPFOLDER + '/cfltools.ini'))
    all_ip_address = scrapeIPs(filename)
    unique_ip_address = getUniqueIps(all_ip_address)
    unique_ip_address = getTimerange(filename, unique_ip_address)
    if (not seen):
        import sqlite3
        db_connection = sqlite3.connect(config['USER']['db_loc'])
        print('Adding to database located at {}...'.format(config['USER']['db_loc']))
        sendUniqueToDatabase(unique_ip_address, APPFOLDER, incident_id, db_connection)
        db_connection.close()
    else:
        print('File was already added to database. Skipping database export.')
def run(filename, incident_id, seen):
    import configparser
    config = configparser.ConfigParser()
    config.read((APPFOLDER + '/cfltools.ini'))
    all_ip_address = scrapeIPs(filename)
    unique_ip_address = getUniqueIps(all_ip_address)
    unique_ip_address = getTimerange(filename, unique_ip_address)
    if (not seen):
        import sqlite3
        db_connection = sqlite3.connect(config['USER']['db_loc'])
        print('Adding to database located at {}...'.format(config['USER']['db_loc']))
        sendUniqueToDatabase(unique_ip_address, APPFOLDER, incident_id, db_connection)
        db_connection.close()
    else:
        print('File was already added to database. Skipping database export.')