Formatting changes
Bug fix
Moved InitialiseTrainRecord procedure outside ReadInLocoDataFromDatabase so it can be called separately
Improved a debug messsage
Delphi modified a form without asking!