public void addAnnouncementToDB() {
		try {
			String statement = new String("INSERT INTO " + DBTable 
					+ " (title, content, time)" 
					+ " VALUES (?, ?, NOW())");
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement, new String[] {"aid"});
			stmt.setString(1, title);
			stmt.setString(2, content);
			stmt.executeUpdate();
			ResultSet rs = stmt.getGeneratedKeys();
			rs.next();
			announcementID = rs.getInt("GENERATED_KEY");
			rs.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}		
	}