added calculations for total and subtotal of an order to be added to the database.