Convert tokens to database config.