code: def insert_query(connection, publicId, aead, keyhandle, aeadobj):
      
  
      # turn the keyhandle into an integer
      keyhandle = key_handle_to_int(keyhandle)
      if not keyhandle == aead.key_handle:
          print("WARNING: keyhandle does not match aead.key_handle")
          return None
  
      # creates the query object
      try:
          sql = aeadobj.insert().values(public_id=publicId, keyhandle=aead.key_handle, nonce=aead.nonce, aead=aead.data)
          # insert the query
          result = connection.execute(sql)
          return result
      except sqlalchemy.exc.IntegrityError:
          pass
      return None
docs: this functions read the response fields and creates sql query. then
      inserts everything inside the database