switching to text read/write for db