added query to translate block # to logrecno