Fix off-by-one error in return_quarantine_dates

1: return_quarantine_dates was returning one too many rows. Last date in quarantine page was always empty

2: fix Issue #33: autocommit warning