db_text: handle cross references