Added ability to download tables as json or tsv