Moved big parts of the WheelViews to WheelDialogs

And added DB support for Thresholds