changed JSON to PG