Small improvements to previous, add CIdentifiDB::GetRelationsByIdentifier