In saucepan over medium heat combine ketchup, molasses, maple syrup, brown sugar, bacon, ham , onion, mustard and water. Bring to simmer reduce heat to low and cook stirring often, until thick about 2 hours. Add beans and simmer another 10 min.
Heat the oven to 325. Spread cream cheese in even layer in bottom of 8 x 8 inch casserole dish. Spoon the beans and sauce over the cream cheese, then top with cheddar cheese. Bake for 10 minutes or until cheese is melted and heated through.