Add needs to be able to get dependencies marked on mods. Also the database will need to have a field to track if a mod was added manually or automatically.
Additionally delete needs an option to mark a manually installed mod as automatic and to remove no longer needed automatic mods.
Need to test if the modloader pulls the dependency automatically. Fabric at least might do this already.