Refactor to save and load entries
Make EntriesResource injectible