Add update deal and delete deal functions.