Moved defaultsoptions to the top of dao.js so it's only init'ed once