Fix a misuse of a set as a dictionary in db loading.