Fix SQL syntax error.
Save corrupted files for later analysis

Conflicts:

	pcp
Add timestamps to messages.