Backend: updated models to delete dependencies