reading json object and storing data in db