Refactored FileOperator, RefItemDao and FileRefItemDao