json file to postgres table