lovely format fixes
CDB-46 #comment added a total hack to detect if a query modify rows after being executed refs Vizzuality/cartodb-management#2281
CDB-46 #comment regenerate legends when quartiles change refs Vizzuality/cartodb-management#2281