fixed database issue with conditioning tracker, problem when skipping cond_id because a rest was specified. Also email is almost working, results are all there, but there isn't a whole lot of usefulness to it yet