Fixed problem with writing direct_dependency column to DB. Now runs with no errors! (Maybe it even works)