cleanup idb adapter, add test for proper testing the update transaction