Failed upgrade, successful rollback, another 2 failed upgrades, more rollbacks and...

Upgrading Drupal is still no trivial task as I learned this weekend. I spent dozens of hours trying to move from 5.7 to 6.2 and every time images (attached to nodes) failed to show.

After 2 days of trying and Googling I came a cross this great piece of SQL from a Mr. pulsar
insert into image select upload.nid as nid , files.fid as fid , filename as image_size from upload, files where upload.fid = files.fid and files.filemime like "image/%";

Anyway, I've got it working. All I need to do now is get some sort of messenger back...