database.Database.close()
Syntax
close()
Description
Commits any pending transactions and closes the database. It's always a good idea to explicitly close the database when you're done.
Example
db = ximport("database")
book = db.create("book")
book.close()