use avro to save data