Make saving of Page objects atomic