Added feature to check where table and constraints exist