use error 409 to be more consistent with other duplication errors
extract function to construct an ID url
extract function to format a database object for responses
creating database returns URL in the Location header
Expiring databases, and updating their expire times now works