Update StatsQuery.php

A new onChange method to accommodate more than three dropdowns