Modified the .exists properties to use db