better handling of no records in csv response

Updated readByQuery to not freak out if CSV has no records.  

This section is all still a bit kludgy, but it's getting better.