Uses proper MDES tables depending on instrument #3523

I quickly fixed Bug 3523 on Nataliya's request.