Change string files to text in db