Tekstiviesti: Monads for measurable queries in probabilistic databases