Default [Q] How to use a donor in a phone flash?

I Know how to flash a phone but I just dont know how to actually put a donor esn into the flashed phone.
Also If someone knows how to add an ESN to a metro pcs database that would help too!