On the variation of the sun's X ray background flux and its relation to the sun's flaring rate, energetic event rate, and the solar cycle