Thats perfect!
I down loaded the newer versions of the DLL's and this is the statement I used.
Sql:= 'SELECT SymbolID, unhex(hex(Data)) as Data from Symbol Where [SymbolID] = '+symbol.FilePos.ToString+';';
I don't understand how the original program was able to process this with the version of the DLL it was using but it did, which leads me to believe there is more to it, I did see a zlib.dll in the source files but I don't know of any area of the code where that is being used, maybe I missed somewhere, the unpacking etc.
Now I need to know how to handle selecting the proper DLL for 32 bit verses 64 bit targets, I need to somehow set the path for the Sqlite.DLL before it loads.
Thank you very much, now I can debug the rest of the code.

Jamie