add in toggle for pulling from db