db: migrate old configuration. Refs #2958