Update dao-factory.js

Revert last commit