Refactor to read results into dict then write dict to db :globe_with_meridians: