public int createSession(String[] sqlData, int[] toggleStatus, int[] toggleValue){
        
        try{
            if(connect.isClosed() || connect.isValid(2)){
                openConnection();
            }
        }
        catch(Exception e){
            errorHandler.logError(e.getMessage(), Level.SEVERE);
        }

        //track success
        int sqlResult = 0;
        
        try{
            // Statements allow to issue SQL queries to the database
            statement = connect.createStatement();
            // Result set get the result of the SQL query
            String sqlStatement = "INSERT INTO impact535_sessions (customer,duration,member) VALUES ('"+sqlData[0]+"','"+sqlData[1]+"','"+sqlData[2]+"')";
            
            sqlResult = statement.executeUpdate(sqlStatement, Statement.RETURN_GENERATED_KEYS);
            ResultSet keys = statement.getGeneratedKeys();
            keys.next();
            sqlResult = keys.getInt(1);
        }
        catch(Exception e){
            errorHandler.logError(e.getMessage(), Level.SEVERE);
        }
        
        //sql statement
        String tempStatement = "";
        //start off the string with leading statement
        int firstStatement = 1;
        //loop through the toggleStatus for multilane
        for(int laneNumber = 0; laneNumber < 20; laneNumber++){
            //if it's the first statement and the status is 1 then update
            if(toggleStatus[laneNumber] == 1 && firstStatement == 1){
                tempStatement = tempStatement + "UPDATE impact535_lanes SET session_id='"+sqlResult+"' WHERE id="+toggleValue[laneNumber];
                //set first statement to 0 to indicate leading statement added
                firstStatement = 0;
            }else if(toggleStatus[laneNumber] == 1 && firstStatement == 0){
                //tail on additional rows to update
                tempStatement = tempStatement + " OR id="+toggleValue[laneNumber];
            }
        }
        
        //commit the multi row update
        sqlResult = updateLane(tempStatement);
        
        //return success
        return sqlResult;

    }