save search history as objects to indexdb instead of a json string