If using dried beans: Soak beans overnight in water, then drain and rinse. Boil in fresh water for about 60 minutes or until tender. Drain and set aside.
If using canned beans: Skip the soaking and boiling steps and drain the beans.
Preheat your oven to 350°F (175°C).
In a large oven-safe pot or Dutch oven, heat olive oil over medium heat. Add the chopped onion and garlic, and sauté until softened, about 5 minutes.
Stir in the tomato sauce, brown sugar, molasses, Dijon mustard, smoked paprika, black pepper, and salt. Mix well.