Added -a (--array) option to return result of query/scan as an array (CSV)