change updateWord method in DbConnection class