The effect of a judgment decreeing a divorce is to restore the parties to the state of unmarried persons.