postgres to string problem