Update dao-factory.js