SMS dit: Relational databases: theory and practice