fix bug in db_instance_update_status