The letter , signed by nearly all the Democrats in the US Senate , comes two days before US commander in Iraq David Petraeus and US Ambassador to Baghdad Ryan Crocker are scheduled to testify to senators on the progress of the war in Iraq .