json to db for register saving