Grab db data for restart more efficiently.
Use python to combine queries for faster performance.
Style correction.
Better results iteration.
Merge pull request #965 from arjclark/restart.optimise

cylc-restart: reduce time to restart large suites