use config to set db path