public static ArrayList<Announcement> getAllAnnouncements() {
		ArrayList<Announcement> announcements = new ArrayList<Announcement>();
		String statement = new String("SELECT * FROM " + DBTable);
		PreparedStatement stmt;
		try {
			stmt = DBConnection.con.prepareStatement(statement);
			ResultSet rs = stmt.executeQuery();
			while (rs.next()) {
				Announcement announcement = new Announcement(rs.getInt("aid"), 
						rs.getString("title"), rs.getString("content"), rs.getTimestamp("time"));
				announcements.add(announcement);
			}
			rs.close();
			Collections.sort(announcements, new announcementSortByTime());
			return announcements;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}