revert depgraph class to use Eloquent