fixed the document dao //note can't pass in blank files