calculate percentile in mysql