database: change code to reflect a new interface

Order.getDeliveryDate() changed its public interface. Update to keep the code
working.