The connecting or supplying pipes leading from buildings or yards to the distributing pipes, shall be inserted and kept in repair at the expense of the owner or occupant of the building or yard, and shall not be inserted or connected with the main pipe until a permit therefor shall be obtained from the board of public works. All such connecting or supplying pipes shall be constructed and connected in the manner prescribed by such board.