Ionic React app. Initialisation code placement

Hi all. This is more of a correct planning question I suppose.
I have an Ionic 7 React app that’s using capacitor. I use the ‘@awesome-cordova-plugins/sqlite’ package to create a database for my app. My question is around app initialisation. specifically, what would be considered a good approach to initialising app data on first load/ subsequent loads. Currently, I am putting some database init code in at the App level on App.tsx, but I’m having difficulty waiting on this code before my landing page opens (requiring database access). I thought of having a modal or page show app first load, Any thoughts on how to structure a robust app initialisation or maybe some links to some reading? Many thanks in advance.