Be it further enacted by the authority aforesaid, That said commission is empowered to compel persons about to undertake any work which may be dangerous, or is likely to involve liability upon that city, to execute a bond with good and sufficient security, conditioned for the payment of any damage that may be sustained by any person for such work.