switched media name check to dao.unique