verify existence of path in db before trying to read it