added the user if to the orders table and set up and index