Outstanding orders database functions and protocols created #28