Insert data into SQLite Database using ionic

Hello, I want to build an application that asks users to enter their data using this app. The data entered will be stored in the database. How to connect input data from ionic to database? Can anyone teach me how to connect to the database?