Added pruning of ip address to reduce the size of the DB