Fry bacon until crisp. Drain. Fry ground beef in fat until tender. Combine onion, ketchup, salt, mustard, vinegar, brown sugar, and partly drain beans in a 3 quart oven container. Mix well. Add hamburger and crumbled bacon. Bake at 350 degrees for 40 minutes.