You could use my script calcardbackup after firing up the old database to pull the two calendars from the old database and reimport them to the new installation. No need to fiddle around in the database then.
Have a look in the README of the repository for the section “does this work with a broken instance”.