Dropped program db abstraction as it isn't really useful. Rewrote random factory using code from unordered set test
Remove random search from append factory (new random factory is faster AND uses less memory, plus it was a hack to begin with).