Change the select statement to a left outer join so when either domain_uuid or user_uuid is null it will still be able to display the data. This will keep the total number of records the same as the count done above
* dos2unix on app/database_transactions/database_transactions.php