def create_episode(conn, episode):
    """
        Create a new episode into the episodes table
        :param conn:
        :param episode:
        :return: episode id
    """
    sql = '''INSERT INTO episode(date, id_show, id_corpus, partition, path)
                  VALUES(?,?,?,?,?)'''
    cur = conn.cursor()
    cur.execute(sql, episode)
    return cur.lastrowid