Having mastered generators, I'm trying to decruft the old SQL-generating code
VERY MAD BUG squashed. Textures no longer duplicated