Initialize the TrainDB using our GenerateTrainDB function.
The signuture is changed and now we are need to save the db from outside.

Also Removed the figure from the GenerateTrainDB
Added the new Spatial Representation code.
This code now contains 2 methods
Added wrappers for the new 2 spatial representation methods.
To switch between them , just switch between the methods in the configuration file