added haveLinkWithTermInDatabase method