Cover The Beans With Cold Water, And Bring To A Boil. Turn Off Heat And Allow Beans To Soak For 1 Hour. Change Water, Bring To A Boil Again, Reduce Heat And Simmer For 1 Hour. In A Large Skillet, Saute The Onion And Chile In Oil Until Soft. Add Garlic, Tomatoes, Basil, Oregano, Thyme, Salt And Pepper. Cook, Stirring Over Medium Heat Until Mixture Forms A Thick Puree. Set Aside. When The Beans Have Cooked For The Hour And Are Almost Done. Add Tomato Puree And Squash And Continue To Cook For Another 20 Minutes. Strin In Corn And Cook For 5 Minutes.