Updated quest_template sql output