Gravar-mail: An extended SQL for temporal data management in clinical decision-support systems.