Explicit probabilistic models for databases and networks