updated send_file for csv record select