Changed all tPostgreSQLoutputs to iPostgreSQLoutputs, created log files ...

...automatically in tmp directory, checked that geometry is valid. Ready for review!