// create and execute a transaction
Transaction txn = dbMan.createTransaction();
txn.createDatabase("test", 2);
txn.insertRecord("test", 0, "hello".getBytes(), "world".getBytes());
txn.insertRecord("test", 1, "key".getBytes(), "value".getBytes());
dbMan.executeTransaction(txn);
// shutdown and restart the database
database.shutdown();
database = BabuDBFactory.createBabuDB(new BabuDBConfig(baseDir, baseDir, 1, 0, 0, SyncMode.ASYNC, 0,