How to get an SQL database that works native as well as web in Ionic 3

We are developing an offline app in IONIC 3 that will also be available as purely web app for desktop browsers. Hence a simple key-value pair offered by ionic-storage is not an option. We need a proper SQL database with search, index etc that will work in android as well as browser.
Most of examples online on sqllite are no longer possible in ionic-3.

Any advise or best practice to make above possible?