Drain beans well. In a large kettle, saute onion and garlic in 2 tablespoons oil until soft. Blend in flour. Stir in tomatoes, chilies and beans, breaking up tomatoes. Cook and stir until boiling. Set aside. Combine 1/4 cup oil with remaining ingredients, except cheese, to make batter. Pour two-thirds of the batter into a greased 2-quart casserole. Sprinkle with two-thirds of the cheese. Top with bean mixture. Spoon remaining batter around edge. Sprinkle with remaining cheese. Bake in preheated 350-degree F oven for 30 to 35 minutes or until cornbread is done. Makes 6 servings.