the Store order summary behavior stores the id of the record that is created in a session variable, on the confirm page, double click the store order summary behavior. Look in the Store As section, this is the name of the session that is created for the orderID column.
on the success page, you can set up the update using this session to target the orderID column of the orders table to update the status to billed.