If these are config variables then you can put them in a table and save the table to a text file as Luan or JSON. If they are dynamic variables then you can save them to Lucene which is the database. If you tell me which you prefer, I can post a code sample.