added query for sales information from deals; added calculateMarginEachDeal() & getTopXDeals()