Compiling Relational Database Schemata into Probabilistic Graphical Models