Removed deprecated code from dao.js.