update getRadioButtonForStats.php

convert all mysqli calls to object oriented style