Database method to fetch word