public static void activitythread() {
		while (worker) {
			java.sql.Connection conn = DbController.dbconnect();
			loggedin = DbController.getactivity(conn, m_loggedas);
			try {
				conn.close();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			int length = loggedin.size();
			for (int i = 0; i < length; i++) {
				if (loggedin.get(i) == 0)
					jTable1.setValueAt("Not LoggedIn", i, 1);
				else
					jTable1.setValueAt("LoggedIn", i, 1);
			}

			try {
				Thread.sleep(5000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}

	}