basic csv generation working, but limitations in raw queries in JPA are a problem, need to try JDBC for raw queries