You use the Odb constructor to create a new, empty Odb object.
odb_Odb& odb = Odb("myData","derived data", "test problem", "testWrite.odb");
You use the save method to save the output database.
odb.save();
For a full description of the save command, see save().