Make a new function to process the table's sql results.