Exporting

Creates a menu item to export results. 
Four button, each runs a different query and exports the results as a csv

Fixes #466