Ionic 3 sqlite database upload to a server

After researching a lot of stuffs on how to extract SQLite database, there are a lot saying that root the phone in order to gain access of the location of the database. But I don`t want to do it, so I am doing to upload it to a server, so im asking for some recommendations on how do I upload all the data from the database to a server without messing up the relation of the table. Any idea will appreciate