moddified TreatmentPlanner for using DB entry.... problem... getting the
random seeds... not used yet... in comments right now