public void writeArrayList(ArrayList<String> list) {
		try {
			FileWriter w = new FileWriter(db);
			for (int i = 0; i < list.size(); i++) {
				w.write(list.get(i) + "\n");
				w.flush();
			}
			w.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}