finish query insert method for nat mapping