I suspect that your problem is caused by using ndbm as your database.
Due to its limitations, it isn't suitable for anything other than a
"toy" database. I suggest you get the berkeley db code and use it
instead. See the top-level Make-common file for the appropriate
#defines to change to use db.
-- Gordon Good (opinions expressed here are mine, Netscape Communications Corp. not necessarily my employer's) Mountain View, CA