Added thing so it can resume from a disk db instead of using memory every time