added queries for preflabel and ID conflicts