Added defined guard in db/access