update db and add url cache.