Heavens. You are making this way more complicated than necessary. There is no "V4.0 database" --- the database has not changed. The only new thing is the opportunity to use an extended schema. But, if the original "wview" schema is working fine for you, don't do anything.
1. Go back to your original "Database A". Get rid of the rest.
2. Go back to your original V3.9 setup. Get rid of the rest.
3. Do a simple upgrade as you always have:
sudo apt-get update
sudo apt-get install weewx
4. Then install the Belchertown skin.
Now you're running on WeeWX V4 with Python 2.
5. If you do want to use the extended schema, perhaps because you have some new sensors that can take advantage of the extended schema, follow the directions I gave in
this post. Otherwise, don't do it.
6. If you want to change to Python 3, then you'll have to switch repositories. Assuming a Debian 10 system, follow the directions
here. If you have a Debian 9 system, it's more complicated, and we recommend staying with Python 2.