Brown onion in butter, add hotdogs and brown. Add spices and mix well. Pour the beans in a baking dish (2 QUART) and add the ketchup and brown sugar and mix well. Add the hotdog mix to beans and stir. Add cheese on top and bake for 30 mins. Serve with french fries or potato wedges.