some ideas on speeding up the cust_main upgrade for big databases