Move function reportSignals upwards
Fix: don't use TRUNCATE, as it silently commits the transaction :-(

And in true sql/php style, no warning whatsoever is provided when we later commit the already commited transaction..