Fix bug where join type was not updating. Save joinType each time it is changed.
Clear up unused code related groups. Reduce number of queries associated with a getGroup call.