The mayor and city council shall be empowered and authorized through a committee or by themselves, in the discretion of said mayor and city council, whenever necessary to examine into the working of, and business of any office or conduct of any officer, and said committee, or the mayor and council conducting such examination swear witnesses and compel the attendance of persons and production of books and papers and all disclosures pertinent to such investigation as may be provided by state law.