if not exists (select * from depend where usedby='Depend::Module' AND uses='DBI') begin insert .... end