Added generic dao for document