JSON to CSV and CSV to JSON converters in PHP.
SQL queries on CSV and TSV files
Run MySQL and PostgreSQL queries and store result in CSV