Fix controllers broken after database scheme update.