DatabaseManager dbMan = database.getDatabaseManager();
// create and execute a transaction
Transaction txn = dbMan.createTransaction();
txn.createDatabase("test", 3);
txn.insertRecord("test", 0, "hello".getBytes(), "world".getBytes());
txn.insertRecord("test", 1, "key".getBytes(), "value".getBytes());
dbMan.executeTransaction(txn);
// check if the database is there
Database db = dbMan.getDatabase("test");