Fix a minor logic flaw that broke generating UPDATE *_template queries to set the AIName
When generating SQL for multiple creatures and/or gameobjects, we now update the ainames inline for all creatures and gameobjects