handle locking
skip deleled or erased records