Added unique constraint on orderid

This change should help query execution performance