Implements search for top x records and download them as a csv file