Measures to save changes in the database