def write_list(current_scene_db, notebook_list, path_list=[]):
    """creates the list of notebooks in list"""
    from src.praxxis.sqlite import connection
    conn = connection.create_connection(current_scene_db)
    cur = conn.cursor()
    clear_list = 'DELETE FROM "NotebookList"'
    reset_counter = (
        "UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='NotebookList'")
    insert_line = (
        'INSERT INTO "NotebookList" (Notebook, Path, Library, RawUrl) VALUES (?,?,?,?)'
        )
    cur.execute(clear_list)
    cur.execute(reset_counter)
    if path_list == []:
        cur.executemany(insert_line, notebook_list)
    else:
        cur.executemany(insert_line, (notebook_list, path_list))
    conn.commit()
    conn.close()
