fixed some bugs with SqlSOBIFileDao, abstracts file system operations better