changed to use alltypes db