use config for db_opts