Created a db wrapper call for accessing open orders.
Resolved merge conflict.