Label assignment now updates the class of the query in the database.