update config file to db.json