added database support for multiple word pools