add init method for wordDB