you get duplicate mysql messages because you have already ran the upgrade so thats not an issue.
Now your config file is not going to be updated until you actually edit it in admin and save
So what is your actual error here besides you seem to have ran upgrades already?