URL Shortener with Java and CouchDB