lib/sharesec.c: fix the upgrade code, db_traverse returns the number of records!