* only run nightly if new person * add tests * use string instead of date * update sql * update tests * simplify condition