Auto write to create and update fields