This is a proposed fix for "Bug 35002 - Provide a way to reliably point to results page".
This change makes the database ID to be reused when submitting data for an existing order with "--merge replace".
It modifies the previous behaviour of creating a new ID for the same order number which turns the URL for the previous submit to be invalid.
Bugzilla issue: https://bugs.llvm.org//show_bug.cgi?id=35002
Isn't this the same as new_id = existing_run_id here?