export query

https://github.com/shiftplanning/foxydb/issues/33