Section 23. And be it further enacted by the authority aforesaid, That it shall and may be lawful for the select and common councils, in common council assembled, from time to time, to permit and license such and so many brokers within the said city, and under such rules and regulations as they may think proper, and to prohibit all other persons from using and exercising the business of broker therein, under such pains and penalties as shall, from time to time, be ordained and established.