update database def to text