Reload the table data after clearing the arrays to avoid potential crash due to asynchronous call to reloadData