I need to know how to insert data into database and select data from database (offline)
This isnt possible
you have to use PlayerPrefs. Otherwise it will be very complicated. But you could use names like this
PlayerPrefs.SetString("TableName[1][1]", "First");
PlayerPrefs.SetString("TableName[1][2]", "Second");
PlayerPrefs.SetString("TableName[2][1]", "Third");
This would look like this in a table or a database:
------------------
| First | Second |
| Third | ... |
------------------