Time and Relational Theory: Temporal Databases in the Relational Model and SQL