From a database migration, we have a data-dump in a postgreSQL database. The task is to write a script in java or groovy in order to read out the files in the correct format