Update dao.js
Merge pull request #128 from YOURsammich/master

fixed crashing