new db and plugin reference