Seperated adding a dependency into artifact table and adding it into dependencies table.