Updating functions

- UpdateTimeline added, plus updateold and updatenew
- new tables "temporalsegment" and "temporalsegment_history" being added
- Removing unused functions