All subqueries in tag searches are now reformed. Further SQL improvements