Added file_id to all tables, deleted data from deleted files, ordered by time when creating line geometry

To run in production, the schema needs to be dropped.