1. Preheat oven to 350 degrees F (175 degrees C).
2. Place bacon and onions in a large, deep skillet. Cook over medium high heat until evenly brown. Drain and set aside.
3. In a large bowl combine beans, molasses, mustard, salt, tomatoes, brown sugar, dry mustard, ham, onions and crumbed bacon. Mix well and transfer to a 2 quart casserole dish.
4. Bake in preheated oven, covered, for 1 hour. Uncover and bake for 1 hour more.