changes for inserting a word to local db