Egg sandwitch

1 tablespoon ketchup
1/2 teaspoon chipotle in adobo sauce
2 slices sourdough bread
2 slices Cheddar
1 tablespoon unsalted butter
1 slice bacon, halved
1 egg