dump the json to db