Use commit() now flush() is formally deprecated