n-n referenced and db clean