def insert_query(connection, publicId, aead, keyhandle, aeadobj):
<EOL>keyhandle = key_handle_to_int(keyhandle)<EOL>if not keyhandle == aead.key_handle:<EOL><INDENT>print("<STR_LIT>")<EOL>return None<EOL><DEDENT>try:<EOL><INDENT>sql = aeadobj.insert().values(public_id=publicId, keyhandle=aead.key_handle, nonce=aead.nonce, aead=aead.data)<EOL>result = connection.execute(sql)<EOL>return result<EOL><DEDENT>except sqlalchemy.exc.IntegrityError:<EOL><INDENT>pass<EOL><DEDENT>return None<EOL>
this functions read the response fields and creates sql query. then
    inserts everything inside the database