fix SQL ref data after metadatablockname drop #572