check for logical entity on database