Use transaction for all commits in settings