scripts for loading json to postgres