Correct domain name is now being saved in the DB
Added some more error checking in the checkValidUrl function
HTML data read only once when retrieving info about HEAD links to icons