[server_status_queries.php refactor]

split long function getQueryStatisticsHtml into small function