changed varchar fields to text for pg