add TDB_NO_NESTING. When this flag is set tdb will not allow any nested transactions...