moving sqlQueryToTrimTable to the data manager.

This will squeeze down the data transaction size (which will be
everywhere)
Expanding customPrameters manager
Passing class name to fetch data

This might be too expensive to do all that often. Will try to get it
working first.