use gdbm instead of anydbm, since gdbm has sync() and hopefully is available everywhere(?)