fix TXT handling to agree with DB structure