private void createDepthCharts(int teamNumber,
                                  int setNumber,
                                  int[][] sortedPlayers,
                                  Connection database)
      {
      int positionNumber=sortedPlayers[0][1];
      int positionDepth=1;
      for(int currentPlayer=0;currentPlayer<sortedPlayers.length;currentPlayer++)
         {
         int playerNumber=sortedPlayers[currentPlayer][0];
         if(playerNumber!=0)
           {
           try
             {
             Statement sql=database.createStatement();
             int updated=sql.executeUpdate("INSERT INTO depthcharts " +
                                           "(TeamNumber,PlayerNumber,PositionNumber,Depth,SetNumber,DateTimeStamp)" +
                                           " VALUES (" +
                                           teamNumber + "," +
                                           playerNumber + "," +
                                           positionNumber + "," +
                                           positionDepth + "," +
                                           setNumber + ",'" +
                                           Routines.getDateTime(false) +
                                           "')");

              if(updated!=1)
                {
                Routines.writeToLog(servletName,"depthcharts("+teamNumber+"/"+positionNumber+") not created",false,context);
                }
				if(positionNumber==15)
				   {
				   //Double each RB depth chart position for FB
				   sql=database.createStatement();
				   updated=sql.executeUpdate("INSERT INTO depthcharts " +
											 "(TeamNumber,PlayerNumber,PositionNumber,Depth,SetNumber,DateTimeStamp)" +
											 " VALUES (" +
											 teamNumber + "," +
											 playerNumber + "," +
											 "16" + "," +
											 positionDepth + "," +
											 setNumber + ",'" +
											 Routines.getDateTime(false) +
											 "')");

					 if(updated!=1)
					   {
					   Routines.writeToLog(servletName,"depthcharts("+teamNumber+"/"+"16"+") not created",false,context);
					   }                	                             
				   }                
              }
           catch(SQLException error)
              {
              Routines.writeToLog(servletName,"Error setting depthcharts("+teamNumber+"/"+positionNumber+") : " + error,false,context);
              }
           }
         positionDepth++;
         }
      }