create tables for subnets and networks