NORJIRA: get the correct CSIDs for media and collectionobject from the database