Note - I only mention this because I did experiments on it before.
nwnx_odbc StorePersistentObject does persist the gff object, albeit in the blob data field.
One way to export directly to its GFF file type is to Save the object to database, but grab an ID for where it is going (eg: its row/record number)
Then execute :
select VAL into outfile "C:/mySword.uti" FIELDS TERMINATED BY '' ENCLOSED BY '' ESCAPED BY '' LINES TERMINATED BY '' STARTING BY '' from pwobjdata where id = 1;
I tested this a few years ago, I was then able to take the uti file and use it successfully in toolset by dropping into the temp0 folder.
The inverse also works - taking a GFF object and putting it into the database, for spawning in nwn.
update pwobjdata set val = LOAD_FILE('C:/mySword.uti') where id = 1;