public static ArrayList<NoteMessage> getMessagesByUserID(int userID) {
		ArrayList<NoteMessage> noteMessageQueue = new ArrayList<NoteMessage>();
		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()) {
				NoteMessage nm = new NoteMessage(
						rs.getInt("mid"), rs.getInt("uid1"), rs.getInt("uid2"), 
						rs.getString("note"), rs.getTimestamp("time"), rs.getBoolean("isRead"));
				noteMessageQueue.add(nm); 
			}
		} catch (SQLException e1) {
			e1.printStackTrace();
		}
		return noteMessageQueue;
	}