protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		Connection con = null;
		PreparedStatement ps = null;
		
		String[] unameperms = request.getParameter("uname").split(";");
		String uname = unameperms[0];
		String perms = unameperms[1];
		String enab = unameperms[2];
		
		System.out.println(request.getParameter("uname"));
		System.out.println(uname);
		System.out.println(perms);
		System.out.println(enab);
		
		
		System.out.println(request.getParameter("submit"));
		
			if(request.getParameter("submit").equals("Change Permissions")){
				
				String stmt = "UPDATE author SET permissions=? WHERE uname=?";
				
				
				
				try {
					
					Class.forName("com.mysql.jdbc.Driver");
					
					con = DriverManager.getConnection("jdbc:mysql://localhost:3306/faultdb","root","Cl1m8t3;");
					
					ps = con.prepareStatement(stmt);
					if(perms.equals("admin")){
						ps.setString(1, "dev");
					} else {
						ps.setString(1,"admin");
					}
						
						ps.setString(2, uname);
						
						
						
					ps.executeUpdate();
					
					response.sendRedirect("viewUsers");
					
					
						
				} catch (Exception e) {
					System.out.println(e);
					response.sendRedirect("viewUsers");
				}
				
				try {
					con.close();
				} catch (SQLException e) {
					e.printStackTrace();
				} 
				
			} else if (request.getParameter("submit").equals("Enable/Disable Account")){
			
			String stmt = "UPDATE author SET enabled=? WHERE uname=?";
			
			
			
			try {
				
				Class.forName("com.mysql.jdbc.Driver");
				
				con = DriverManager.getConnection("jdbc:mysql://localhost:3306/faultdb","root","Cl1m8t3;");
				
				
				ps = con.prepareStatement(stmt);
				if(enab.equals("true")){
					ps.setString(1, "false");
				} else {
					ps.setString(1,"true");
				}
					
					ps.setString(2, uname);
					
					
					
				ps.executeUpdate();
				
				response.sendRedirect("viewUsers");
				
				
					
			} catch (Exception e) {
				System.out.println(e);
				response.sendRedirect("viewUsers");
			}
			
			try {
				con.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
			
			
			
		
		}
		
		//response.sendRedirect("viewUsers");
		
	}