updated db/mongo entity link/unlink related methods