parse xml response, save to db, fix threads