The Mayor of the District of Columbia shall provide suitable accommodations within the District for the detention of witnesses who are unable to furnish security for their appearance in criminal proceedings, and such accommodations shall be in premises other than those employed for the confinement of persons charged with crime, fraud, or disorderly conduct; and it shall be the duty of all judges in committing witnesses to have regard to the rules and regulations of the Council of the District of Columbia in reference to their detention.