fixed cartodb queries for total_area