Added word table related functions to Database class.