some modifications in bdb_wraper interface