Melt butter in a medium sized skillet over medium high heat. Add onion, cook and stir until crisp tender.
Stir in drained chopped chilies, then spoon mixture into prepared pan. Sprinkle the cheeses over the onion and chilies.
In a small bowl,beat the eggs slightly.then beat in sour cream and pepper flakes. Spoon mixture evenly over the cheese mixture in pan. Sprinkle chopped tomato evenly over all.
Bake at 350 for 35-45 minutes or until a knife inserted near centre comes out clean.