Bug fix for storing the pair_port number in the DB