Added an init function to initialize the DAO (allows things like make an index collection).