fix: id fetching in rest.save_records()