Capturing some rough work in progress on using database instead of pickle files