Build data for DataTables