added one more condition with create database link