Fix bugs in mongodb storage and StorageStatusAgent