Test range truncation and single-item requests
Fix Location link in post to db lacking a primary key

Fixes #29