Database added and implemented, getWord() function