public static Achievement getAchievementByID(int aid) {
		String statement = new String("SELECT * FROM " + DBTable + " WHERE aid = ?");
		PreparedStatement stmt;
		try {
			stmt = DBConnection.con.prepareStatement(statement);
			stmt.setInt(1, aid);
			ResultSet rs = stmt.executeQuery();
			Achievement achievement = null;
			if (rs.next()) {
				achievement = new Achievement(rs.getInt("aid"), rs.getInt("type"), rs.getString("name"), 
						rs.getString("url"), rs.getString("description"), rs.getInt("threshold"));				
			} else {
				System.out.println("Achievement " + aid + " NOT FOUND");
			}			
			rs.close();
			return achievement;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}