added median_clear for mysql 5; removed type check so it can accept INTs as parameters