Meanwhile, in a medium bowl, whisk together the ketchup, molasses, sugar, ground mustard, ground cloves, and 1 cup water to combine. Add the cooked beans and pour the mixture into the pot with the bacon and onion. Stir, cover and bake for 1 hour, stirring every 20 minutes.