Flushes pending changes to disk.
Optional
Database.flush
O(1) delegation to the database; costs whatever the corresponding method costs.
Flushes pending changes to disk.