Run read-only SQL queries on IHS Petra v3 or v4 databases and write results to .csv.