Refactor getEntries
Refactor postEntries
Refactor getEntry
Refactor putEntry
Refactor deleteEntry
Extract common insertion functionality

I didn't apply this to createEntry because it would lose its ACID
qualities.