hello friend,since your wife and son got valid RP in their passports, they can re-enter in Qatar provided you obtain a extension permit from the immigration authority.the charges are 500 QAR per person.the department is located outside Doha intl Airport near the mosque(you may have to fill up a form explaining the reason for their overstay).
good luck.
kindly post your experience,so others will be benefitted.