Check if the main title is in alt titles first to avoid unique constraint errors