added provides and dependency writing to db