For decades, conventional wisdom held that peptic ulcers were caused by stress and unhealthy eating habits. But the vast majority are caused by bacteria.