completed orders - integration with database