got process_diff.sql working