Added dd_name to dbt_driver_t
Added tests for dbt.c and fixed a bug in the new bdb legacy driver