added a check that the url is not already stored
added a check that the url is not already stored