avoid duplicate call to get nodes for a tree
converted both executesql calls to return tuples, not dicts
Merge pull request #56 from OpenTreeOfLife/issue48

Improvements in memory usage by NexSON exporter