Clean the calamari. Separate the tentacles from the bodies then finely chop the tentacles. Set aside.
Over medium heat, in saucepan with a tablespoon of extra virgin olive oil, sautè the garlic and onions.
When the onions turn transparent, add the ham (if using), bread and half of the parsley. Sautè for about 2 minutes then add the tentacles. Cook until the water almost evaporates.
Add 2/3 of the white wine on medium to high heat. Continue to cook until the wine evaporates and the sauce thickens.
Cook for another 10 minutes then turn off the heat. Let it cool.
Fill up the calamari with the filling then close them with toothpicks.
Leave the liquid of the filling in the saucepan.
Over medium heat, pour the remaining oil in the saucepan. When the oil is hot, add the stuffed calamari then brown all sides.
Pour the remaining white wine on medium to high heat then let it evaporate.
Pour the tomato puree in the saucepan. Let it boil then simmer, covered for about 45 minutes.