public boolean Select(String ticket, String lastName) throws Exception {
	    try {
	      //Load the MySQL driver
	      Class.forName("com.mysql.jdbc.Driver");
	      //Setup the connection with the database
	      conn = DriverManager.getConnection("jdbc:mysql://" +dbHost+ ":" +dbPort+ "/" +dbName, dbUser, dbPass);
	      //Create statement to execute query
	      stmt = conn.createStatement();
	      //Execute query
	      resultSet = stmt.executeQuery("select lastname, ticket from users where ticket='" +ticket+ "'and lastname='" +lastName+ "'");
	      //Count the results that are returned (affected rows) this should be 1 (unique ticket/lastname combination)
	      while(resultSet.next())
	      {
	    	  //increment count by 1
	    	  count++;
	      }
	      if (count == 1)
	         {
	    	  	//If there is 1 row with the ticket/lastname combination => return true
	    		return true;
	         }
	    	else
	    	{
	    		return false;
	    	}
	     //If there is an error, throw it
	    } catch (Exception e) {
	      throw e;
	    //Finally close the connections
	    } finally {
	    	if (stmt != null) stmt.close();
	           if (conn != null) conn.close();
	    }

	
	
	}