added logic for saving data to the Hypothetical table