Obtain Docdel db id and RD id. Refs #1369

- Added Docdel db id and RD id to orders.
- Misc. updates