How to use typological databases in historical linguistic research*