lib/db: Use need func in withNeed and simplify (#6412)
lib/db: Use need func in withNeed and simplify (#6412)


syncthing/syncthing,imsodin/syncthing,imsodin/syncthing,imsodin/syncthing,imsodin/syncthing,wweich/syncthing,imsodin/syncthing,syncthing/syncthing,syncthing/syncthing,syncthing/syncthing,wweich/syncthing,syncthing/syncthing,wweich/syncthing,wweich/syncthing,syncthing/syncthing