make db_row to autodetect table structure and fix some notices from xml_read