Check if entity is in database before trying to resolve relationships