replace db component dependency