I usually make my bean soup and baked beans on the same day. It is the same process up to a point. Uses a whole quart box of chicken broth, a whole can of tomato sauce, a whole package of diced ham. Just makes sense and saves a lot of duplication of time.
cover beans with water and a table spoon of baking soda.Make sure there is plenty of water for the beans to soak up. Let sit over night or even 24 hours.
drain and rinse beans, put back in pot with 2 cups water and 2 cups chicken broth, add 2 whole dried bay leaves. Simmer at low heat until the beans are just tender, about an hour. Keep adding water as necessary so the beans don't burn.
add the carrots, onion, tomato sauce, brown sugar, ham, ketchup, mustard, continue to simmer until all is tender. Continue to add water as necessary without getting to watered down.
When all is tender, remove bay leaves and discard, place in a bean pot and bake at 350 for about an hour and a half. The beans will not be whole probably, starting to break down into a semi solid.