Update DBProcessor.js

construct architecture