Python Use Variable In Sqlite Database Is Locked