I could help you in this matter but I need to ask you a few questions first.
1) what is your nationality
2) what is your 1st wife's nationality
3) what is your future 2nd wife's nationality
4) are both in qatar and if yes do they both have residency ?

based on this I could probably help you with your questions
If you want to send me a private message please do so on my email
good luck
salam