@Override
	public void run() {
		try {
			pokemon = new Pokemon(db, moves, ability, id);
			OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(new File("db/pokemon/" + pokemon.name + ".poke")));
			out.write(Pokemon.toXML(pokemon));
			out.close();
		} catch (SqlJetException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		finished = true;
		try {
			db.close();
		} catch (SqlJetException e) {
			e.printStackTrace();
		}
	}