More changes for sdb_open/sdb_close