First phase

Search for dependent table before merging