public void addAchievementToDB() {
		try {
			String statement = new String("INSERT INTO " + DBTable 
					+ " (type, name, url, description, threshold)" 
					+ " VALUES (?, ?, ?, ?, ?)");
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement, new String[] {"aid"});
			stmt.setInt(1, type);
			stmt.setString(2, name);
			stmt.setString(3, url);
			stmt.setString(4, description);
			stmt.setInt(5, threshold);
			stmt.executeUpdate();
			ResultSet rs = stmt.getGeneratedKeys();
			rs.next();
			id = rs.getInt("GENERATED_KEY");
			rs.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}