Make LocalAdapter use record hooks after persistence

LocalAdapter now uses the new did_(create|update|destroy) hooks after
persisting the record.