SQLite support in Safari was dropped some time ago. The standard committee refers to it as Web SQL - here’s the current support for it across different browsers.
The workaround for iOS is to make a native app and use an SQLite plugin. This works very well and is done by many people.