check if URL is or not in the DB before try add or update