City adopts building code to keep insurance rating