committing the database file