script to query DowntimeCache table in ResourceManagemtDB