db to json and json to db added in mysql