Ionic storeg is loaded

I need a function to check if the database is ready