Fixed a bug where progress bar overtimes were incorrect

- Fixed tests and removed a flakey test against the exact ETA of a progress bar as this was breaking quite often as tests can be ran half way through a second
Fixed memory leaks when the tables are updates with realtime