change datatype to text for postgres