Modified generateDependency.sql