Flexible csv to postgresql script.