Fixed toTextDBRepresentation()