support migration from older databases