title: sqlite3.OperationalError: database is locked
body: <p>I'm trying to insert all values of a list to my sqlite3 database. When I simulate this query by using the python interactive interpreter, I am able to insert the single value to DB properly. But my code fails while using an iteration:</p>
  
  <pre><code>...
  connection=lite.connect(db_name)
  cursor=connection.cursor()
  for name in match:
           cursor.execute("""INSERT INTO video_dizi(name) VALUES (?)""",(name,))
  connection.commit()
  ...
  
  error:cursor.execute("""INSERT INTO video_dizi(name) VALUES (?)""",(name,))
  sqlite3.OperationalError: database is locked
  </code></pre>
  
  <p>Any way to overcome this problem?</p>