To determine the release type the script first makes a database request to get the GamePieceTypes,id and than inserts it in the sql script. It would be much more efficient if we just join the GamePieceTypes table to the MasterList and use the type name directly.
I already prepared a fix but I wanted to ask if it is okay if I also change the whole SQL to ISO/ANSI compliant joins?