(bug 5245) fix update-db.pl breaking when whitespace stripped

This both strips whitespace, fixes the issues that failed when whitespace-stripped *and* makes those issues not fail with whitespace-stripping

[ I do not know why I didn't open this before... oO ]