title: How do I set Python None to db3 Null
body: <p>I have the following values In Python values:</p>
  
  <pre><code>_sfwBIPMKEeCTfuMZpaDEBQ Atomic Warehouse Model None
  </code></pre>
  
  <p>These values are sent through a function and is being put into a db3 table like this:</p>
  
  <pre><code>INSERT INTO [PackageRoster] (PkgID, Package, PkgParentID) VALUES ('_sfwBIPMKEeCTfuMZpaDEBQ', 'Atomic Warehouse Model', 'None');
  </code></pre>
  
  <p>I do not want the string 'None' put into the table.  I would like NULL.
  How do I tell Python to inject NULL instead of None?</p>
  
  <p>Here's the function that works the statement (includes debug feature):</p>
  
  <pre><code>def StorePackage(PkgID, Package, PkgParentID):
      dbutils.ResetTable()
      conn = sqlite3.connect(dbutils.db)
      try:
          conn.execute("INSERT INTO " + dbutils.table + " (PkgID, Package, PkgParentID) VALUES ('" + PkgID + "', '" + Package + "', '" + PkgParentID + "');")
      except:
          print("INSERT INTO " + dbutils.table + " (PkgID, Package, PkgParentID) VALUES ('" + PkgID + "', '" + Package + "', '" + str(PkgParentID) + "');")
      conn.commit()
  </code></pre>
  
  <p>Thanks</p>