Dependencies are now added and removed

All dependencies get now added and deleted to the database.
Added dependency information to json