Cordova to Capacitor

I have an existing Cordova application currently in both the Google and Apple stores. The App is called “iXplore Yellowstone”. It uses a mysql database. I’d like to convert it to a PWA.

I’ve tried to follow the Capacitor docs. When I run “npx cap server”, the browser comes up with my main menu, but the database doesn’t load. I think I’m missing a service-worker. Does one get created automatically? I also don’t see a splash screen.

Can I use an embedded mysql database with a PWA? If so, are there any tutorials on how to do this.

BTW, I’m new to PWAs and Ionic.

Thanks.