public static ArrayList<ChallengeMessage> getMessagesByUserID(int userID) {
		ArrayList<ChallengeMessage> ChallengMessageQueue = new ArrayList<ChallengeMessage>();
		try {
			String statement = new String("SELECT * FROM " + DBTable + " WHERE uid2 = ?");
			PreparedStatement stmt = DBConnection.con.prepareStatement(statement);
			stmt.setInt(1, userID);
			ResultSet rs = DBConnection.DBQuery(stmt);
			rs.beforeFirst();
			while(rs.next()) {
				ChallengeMessage cm = new ChallengeMessage(
						rs.getInt("mid"), rs.getInt("uid1"), rs.getInt("uid2"), 
						rs.getTimestamp("time"), rs.getInt("qid"), rs.getDouble("bestScore"),
						rs.getBoolean("isRead"));
				ChallengMessageQueue.add(cm); 
			}
		} catch (SQLException e1) {
			e1.printStackTrace();
		}
		return ChallengMessageQueue;
	}