=====Query===== Perform a query to get the data from a specified unit either as an applescript list of lists or alternatively writing the data to a file. ====Usage:==== * **query** [text: the name of the Unit or Database] * **starting at** [date: the start date/time for the query] * **ending at** [date: the stop date/time for the query] * **saving to**[optional: file: an applescript file reference to write the data to instead of returning a list * **returns:** a list of lists for each update/event with the date and the value like: {{date, value}, {date, value}...}