Finished the rescaling part for ridge regression

However, CV module has "out of memory" error now. Still working on it.
Change the order of loops to decrease work amount

No need to create training and validation data sets for each loop. Just
need to create them for k-fold.
Tested replacing table with view

Trying to avoid max_locks_per_transaction, but clearly drop view also
needs lock.