add JSON fomat
save data to postgres db