Added taking sold and not sold goods from the database service.