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