Ethan: Removed unfinished data line from txt file. Can now acces timestamp and startup time. Improved index table inserting. Inserts data into basetable. Other modifications.
Ethan: Moved integrity constraint catch block to proper location.