def check_table(conn, table, interconnect):
    """
    searches if Interconnect exists in table in database 
    :param conn: connect instance for database
    :param table: name of table you want to check
    :param interconnect: name of the Interconnect you are looking for
    :return: results of SQL query searching for table
    """
    cur = conn.cursor()
    sql_search = "SELECT * \
                  FROM %s \
                  WHERE Interconnect='%s'" % (table, interconnect)
    found = cur.execute(sql_search).fetchone()
    return found