tap is almost done

just need to change db tables territory and territory log to go on