don't build dictionaries on a foundation-database

fixes #1886.