A database system for research in language typology