It is illegal to take and hold an employee's passport other than to get the RP inserted - it has to be returned to you. A passport belongs to the country that issues it - the employer under Qatari law is not allowed to hold it in order to hold you.