Refactored graph adapter to restrict database i/o to datum derivatives.