httpClient = new StdHttpClient.Builder().url(url).build();
} catch (final MalformedURLException e) {
throw new IllegalStateException(e);
}
stdCouchDbInstance = new StdCouchDbInstance(httpClient);
db = new StdCouchDbConnector(dbName, stdCouchDbInstance);
db.createDatabaseIfNotExists();
designDocument = new DesignDocument("_design/channels");
addView(designDocument, Views.CHANNEL);
addView(designDocument, Views.UAID);
addView(designDocument, Views.TOKEN);