Rework the ALL files so it works with the save results feature.
Add db save for results
Added for db save #41
fixes for db save #41
Merge branch 'save_results'