Writes first page of results to csv file