[#31425] Invalid debug database queries count

Debug explain queries were included in total queries counter.