check whether pgsql supports json fields, thanks Alan