title: How to fix "Database is locked" when UPDATE?
body: <p>I want to update datas from the variable, but I don't know why this error message display when I execute my code:  </p>
  
  <pre><code>line 18, in save
  curseur.execute("UPDATE SAV SET Commentaires_SAV=(?)", (T_Comment.get("1.0", END),) )
  sqlite3.OperationalError: database is locked
  </code></pre>
  
  <p>I'm runing on Atom for the script, using python 3.7.2, and using SQLite3 and SQLite Studio for all datas.</p>
  
  <pre class="lang-py prettyprint-override"><code>import sqlite3
  from tkinter import *
  
  connexion = sqlite3.connect('Base_SAV.db')            
  curseur = connexion.cursor()                       
  curseur.execute("PRAGMA foreign_keys =ON")
  
  def save(event):
     curseur.execute("UPDATE SAV SET Commentaires_SAV=(?)", (T_Comment.get("1.0", END),) )
  
  ... 
  
  L_Comment = Label(my_frame, text='Commentaires SAV :', font=('Arial', 22, 'bold','underline')).grid(row=1, column=1, sticky='w')
  T_Comment = Text(my_frame, height=10, width=100,font=('Arial',14))
  T_Comment.grid(row=2, column=1,columnspan=7, sticky='w')
  
  ...
  my_frame.bind("&lt;Return&gt;", save)
  </code></pre>
  
  <p>I don't know how to fix this issue. Thank you if you can help me.</p>