Checkout page now writes the order to the database.