adding active record base on json