Cook bacon, chopped onion, and garlic in a skillet, when bacon is cooked; drain well. Combine bacon mixture along with all of the canned beans, pour into a casserole dish. Combine the remaining ingredients and mix well. Pour ketchup mixture over the beans in the casserole dish, stir slightly. Bake at 350 degrees for 1 hour.