Update poll_mode to new create_update_inmate function and add timedelta date arithmetic