Reduced chunk size to handle bad message length error. Added XML db, and get_xml_str to pdf.