Added method for saving and updating surveys.