PostgreSQL implementation - lacks the actual TimeTravel function, but otherwise it seems to be complete.