Logical Interpretation of Relational Databases