publish to a topic upon saving data