check url in the database