Add db index to order_ref