Python Insert Json Into Sqlite Database Is Locked