clean old code
add unpacktoString and isInDB
fix printWord