Developing Time Oriented Database Applications in SQL