looks up a word and stores its definition in a database