added adaptcsv for converting csv to stata for rails_survey