reading links from file and storing in db