finished implementing update_monitoring_state task
finished implementing states update logic, and added a cleanup task
recording states last status change date