fixed cartodb query