Add to_csv and download methods to baseController class.