create nokogiri document when storing data