cleanup at make_dbentry