Caroline, the apm_package__singleton_p proc was wrong
in the upgrade script, I updated the upgrade-5.0.0b3-5.0.0b4.sql to fix it (I had already
fixed the create script) so you might want to replace
it with a correct one or suffer the consequences down the
road :)
Also, I applied a couple patches to the upgrade scripts
so anyone trying to work through upgrading might want
to do a cvs update...