removed unnecessary if statement
instead of multiple db queries to retrieve diffs, did 1 and appended all results to list