I have two python threads both of which runs at the same time: 1) Thread1 opens sqlite database, inserts data and closes sqlite db. 2) Thread2 opens sqlite database, reads d