Refactoring DBManip