Add PUT support and parse db-name from command line opts.

Works for CouchDB access.