Changed the close table function so it now calculates the total tips for the order and updates the orders table appropriately.  This is needed for the stats.  It also sets the order state to paid.