Good question, AI needs data to work functional, beside not all AIs are AI, most of them actually are bunch of state checks of a particular case study
Web is still live, and will be for next decades I think, it might get easier and easier becasue of new frameworks, and stuffs…
And remember if there will be any AI to do web, that AI will be developed by web developers indeed, not a database user. So you could be one make AI for web real.
One fact is, a good developer should be great enough to switch to new environment/platform when new requirements are depend on it.
Just back to around 10-12 years ago, when Nokia was top of the world, and good mobile developers were ones code symbian, but today no one have any clue what is symbian? UIQ?
Same story about Windows, where Win XP and 7 were on top of OS market share. But today? devs may tend to code for iOS, Android, and even web instead of native windows apps
So this is a fact, no one knows, maybe next month something out which obsolete all developing for web with something easier.
A good developer should be ready and experienced enough to switch to new stuffs very fast with minimum time it needs.
A true passionate programmer is one loves programming becasue of systems and computers, not becasue of JS, python, … You should gain enough experience to switch easily to other system no so hard.
Also considering the field you are working on. So if you are like to be a UI/UX developer, you should not be worry about AI or database world.
Too much dependency(sometimes fake and nonsense royalty) on something also could kill a programmer, just assume the Nokia case again, when symbian is dead, so dev is.
This better now accept something you loved is dead and start a new brand stuff.
Talked so much, sorry.
Keep going on great work, happy programming.