pulling from thedb