How to save input data in temporary file and how to save the data saved in that temporary file in SqliteDatabase table

In form there is only two input field UserName and full name and two button save to temporary storage or save to database table [Project Demo design][1] [1]: https://i.stack.imgur.com/uQqIp.png