document text saved into and retrieved from database