Improved memory usage when echoing data table by moving to function
printDataTable($num_rows, $rows).