code: def insertSQL(conn, sql, args=None):
      '''
      args: if sql has parameters defined with either %s or %(key)s then args should be a either list or dict of parameter
      values respectively.
      returns the insert id
      '''
      with doCursor(conn) as cursor:
          cursor.execute(sql, args)
          id = conn.insert_id()
          return if insertSQL(conn, sql, args=None):
      '''
      args: if sql has parameters defined with either %s or %(key)s then args should be a either list or dict of parameter
      values respectively.
      returns the insert id
      '''
      with doCursor(conn) as cursor:
          cursor.execute(sql, args)
          id = conn.insert_id()
          return id
docs: args: if sql has parameters defined with either %s or %(key)s then args should be a either list or dict of parameter
      values respectively.
      returns the insert id