Added basic logging of output

The arrivals and predictions during each update can be saved to files
Switched database from SQLite to MySQL