Refactored out the data access code from StorageNode