add saveAs to queries