implemented populating datastore with words, and queries