This block and the next are identical except for searchterms vs blushlist, probably makes sense to do

function update(oldmap, oldversion, newmap, newversion) {
 ...
}